package com.fit.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.interfaces.BuldingMaterials;



public class BuldingsMaterialsBean implements BuldingsMaterials{
	
    private Map<String, BuldingMaterials> buldingsMaterials = new HashMap<String, BuldingMaterials>();

    public Collection<BuldingMaterials> retrieve() {
            return buldingsMaterials.values();
    }

    public BuldingMaterials save(BuldingMaterials buldingMaterials) {
            return buldingsMaterials.put(buldingMaterials.getType(), buldingMaterials);
    }

    public BuldingMaterials retrieveSingleBuldingMaterials(String type) {
            return buldingsMaterials.get(type);
    }
	

}
